package com.zis.system.client;

import com.zis.starter.core.ResponseEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient("sys-server")
public interface RegionClient {

    @RequestMapping(value = "/region/level/{parentId}", method = RequestMethod.GET)
    ResponseEntity findByParentId(@PathVariable("parentId") String parentId) throws Exception;

    @RequestMapping(value = "/region/json/tree", method = RequestMethod.GET)
    ResponseEntity findTreeJSON() throws Exception;
}
